LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-13-2008, 10:31 PM   #1
tapan_chugh
LQ Newbie
 
Registered: Dec 2007
Distribution: Ubuntu 9.10 , Fedora 12
Posts: 26

Rep: Reputation: 15
the terminal shows -bash-3.2


I have completely followed the instruction in the LFS-6.3 book and created my LFS system. After rebooting when i logged inside the LFS system I found that instead of showing the usual root@lfs it displayed
-bash-3.2 Please help
 
Old 02-14-2008, 03:16 PM   #2
javpra
Member
 
Registered: Nov 2003
Distribution: FreeBSD/Gentoo/Debian
Posts: 52

Rep: Reputation: 19
Try adding this (or changing it if it's already present) to your .bashrc file under your home directory.

PS1="[\u@\h:\W, \@, \d]> "


PS1 stands for your prompt. Everything that follows are options for the PS1 variable. Here is a link that describes the available options. http://www.freebsddiary.org/prompt.php
 
1 members found this post helpful.
Old 03-20-2008, 05:00 AM   #3
tapan_chugh
LQ Newbie
 
Registered: Dec 2007
Distribution: Ubuntu 9.10 , Fedora 12
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks for the help
 
Old 10-18-2013, 05:35 AM   #4
kumar kaushik
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
hi,
do the following .
if /root directory doesn't exist make one else continue.

vi .bash_profile

edit it with below.


# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
ulimit -n 63536
ulimit -u 32768
export PATH
unset USERNAME


save and exit

again

vi .bashrc

edit with below

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc

save and exit

you are done
try re-login your issue is resolved.
 
Old 10-18-2013, 09:55 AM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by tapan_chugh View Post
I have completely followed the instruction in the LFS-6.3 book...
Why are you using such an old version of LFS/BASH?

LFS now stands at 7.4 and BASH at 4.2.42 I would STRONGLY recommend you update before you go any further.
 
Old 10-18-2013, 10:45 AM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by Keith Hedger View Post
Why are you using such an old version of LFS/BASH?
in 2008 that was quite new
 
Old 10-18-2013, 10:53 AM   #7
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by kumar kaushik View Post
hi,
do the following .
< snip >
you are done
try re-login your issue is resolved.
That would not have resolved the problem

the answer was in post 2, posted way back in 2008

further more, I don't understand what the
Quote:
Originally Posted by kumar kaushik View Post
if /root directory doesn't exist make one else continue
means

and when asking someone to edit a file, give the full path

vi .bash_profile, edits the file in the current dir, you have no idea what dir they are in

Code:
vim ~/.bash_profile
also be careful with vi{m},, some people endup rebooting their machine because they have no idea how to use vi{m}


edit, actually, I miss read it,
I see what you were doing, assumes PS1 is in /etc/bashrc

still, that probably wouldn't work ( actually not certain about 3.2 / LFS 6.x)
/etc/bash.bashrc is the correct file

Last edited by Firerat; 10-18-2013 at 11:00 AM. Reason: _profile not rc
 
Old 10-18-2013, 10:56 AM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by Firerat View Post
in 2008 that was quite new
Whoops didn't notice the date just that there was a new post in the thread my bad.
 
Old 10-18-2013, 11:03 AM   #9
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783


I saw bash 3.2 and LFS and got excited at the thought of working out just how the hell they managed to mess that up
Then I saw the date
 
Old 10-18-2013, 03:18 PM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Yes, someone necro-bumped...
 
Old 10-19-2013, 10:18 AM   #11
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by ReaperX7 View Post
... necro-bumped...
LOL Love that expression!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xfce terminal shows "bash-3.11" instead of the path jsmith6 Slackware 5 01-13-2008 02:30 PM
Cannot Get into X11 as well as to terminal--Some Space error it shows covaigold Linux - Software 0 02-19-2005 09:24 AM
is there a terminal command that shows how much space is left in my partitions lemuel Linux - Newbie 3 01-23-2005 07:16 PM
changing the way the bash prompt shows up Quartzophobia Linux - General 10 02-15-2004 02:37 PM
newly opened terminal shows bash-2.05$ instead of path jang Linux - General 6 01-18-2004 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration